home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
008a
/
sysmap26.zip
/
SYSMAP.DOC
next >
Wrap
Text File
|
1991-11-28
|
16KB
|
366 lines
SysMap: Version 2.6, September 1991 -- upgrade to support DOS 5.
(C) Copyright 1989-1991, Earl F. Glynn, Overland Park, KS.
Compuserve 73257,3527
All Rights Reserved. This program may be freely distributed only for
non-commercial use.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SysMap shows a map of a PC including BIOS, DOS, memory and disk information.
SysMap is a useful audit tool for making an inventory of software and
PC configurations. In only a few seconds, a complete list of software
and configuration information can be recorded on a floppy disk. This
ASCII file can be printed, or viewed using the DOS TYPE command
(or MORE), any editor, or browse utilities, such as PC Magazine's DR.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Syntax:
SYSMAP [dirspec] [/options] [> output.lst]
Default:
SYSMAP C:\ /F
Typical Usage:
SYSMAP > A:system.map
where
'dirspec' is a directory specification. The default is the root
directory on the C drive, but any directory can be specified,
e.g., C:\DOS\. Information on the specified directory, and all
of its subdirectories, will be included in the system map.
Other system information is displayed ONLY when the 'dirspec'
is the root directory of a drive, such as C:\.
'/option' is a one of the following characters (either case) that
controls the sort order of the files. Directories are always
sorted in ascending order by name.
D -- DOS order (no sort)
E -- sort by extension (ascending) and filename (ascending)
F -- sort by filespec -- filename.ext -- (ascending) [default]
S -- sort by file size (descending) and filespec (ascending)
T -- sort by time stamp (descending) and filespec (ascending)
One additional option requests a CRC-16 code be calculated for each
file:
C -- calculate CRC-16 on each file and checksum of CRC codes
for each directory. Specifying this option will take
considerable extra time. However, specifying this option
on new machines will allow one to determine if any files
are ever modified. This method of detecting changes to
files should be useful in identifying files possibly
infected with computer viruses.
Output from SysMap can be redirected to a disk file using a
command such as: SYSMAP C:\ /E > A:disk.map
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Limitations: Only the first 1000 entries (files or subdirectories)
in any directory will be processed.
SysMap has only been tested extensively under DOS 3.3
on a variety of machines, e.g, PS/2s, ATs, XTs, Compaqs,
Grids, Toshibas, Dells. Testing on machines with DOS
4 or 5 has been very limited.
The "machine type" listed by SysMap is based on a code
returned by the BIOS and is not currently based on
actual hardware. This "machine type" code should be
accurate for IBM machines, but may or may not be
accurate for other vendors.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Acknowledgements:
Information for developing SysMap came from a number of sources
including, The Waite Group's "MS-DOS Developer's Guide" (second
edition), Ray Duncan's "IBM ROM BIOS" and "MS-DOS Functions"
reference series, Que's "DOS and BIOS Functions Quick Reference",
Steve Grant's (Long Beach, CA) SYSID.PAS from local BBS, and
Dave Williams' (Jacsonville, AR) "Programming Technical Reference"
from a local BBS. Also consulted were IBM's "PS/2 Hardware Interface
Technical Reference, "Technical Reference Personal Computer AT",
"Disk Operating System Version 3.30 Technical Reference", and
various PC magazines and journals.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source Code:
SysMap is written in Turbo Pasal 6.0. At present the source code
is not available as shareware.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Sample SysMap output from a Dell 220 computer:
System Map (Version Sep 91) -- System Summary and Inventory
BIOS Information
Machine type is 80286 PC XT-286 (Model FC, 02), BIOS Revision 0
PC bus
Real time clock present
Copyright Date 01/15/88 Part Number (FFFFFFFFFFFFFFFF)
Memory: 640 KB conventional, 0 KB extended
Active video adapter + monitor: VGA + analog color
BIOS support for enhanced keyboard; enhanced keyboard present
1 printer port, 2 serial ports, 1 floppy drive
math coprocessor, no game port, mouse
Clocks
CMOS Clock: Thursday, 11/28/91 22:03:05
DOS Clock: Thursday, 11/28/91 22:03:30.12
Difference: -25.12 seconds (CMOS - DOS)
DOS System Configuration Files
C:\AUTOEXEC.BAT 11/20/91 22:12:26 Attributes: A-----
@ECHO OFF
PATH C:\DOS
SET TEMP=C:\TEMPFILE
C:\dos\doskey /bufsize=256
C:\TOOLS\SETUP2 C:\TOOLS\LASERJET.IIP
C:\MSMOUSE\mouse
path c:\dos;c:\borlandc\bin;c:\tp;c:\wp51;c:\tools;d:\develop;c:\qpro
PROMPT $p $t$h$h$h$_$g
SYSCHK
C:\CONFIG.SYS 10/29/91 00:17:50 Attributes: A-----
DEVICE=C:\DOS\SETVER.EXE
SHELL=C:\DOS\COMMAND.COM C:\DOS\ /p
FILES=40
BUFFERS=20
DOS Memory Map
Memory
Control Block Size
Block [Bytes] Owner
Segment hex decimal Segment Type Name
------- ------- ------- ------- ------------ ------------------------
0B5F 03E20 15904 0008 System <DOS 5.0 kernel>
0F42 01160 4448 0F43 Program <shell>
1059 00040 64 0000 Free Space <unallocated>
105E 00100 256 0F43 Environment <shell>
106F 00050 80 0000 Free Space <unallocated>
1075 00F30 3888 1076 Program <unknown>
1169 01490 5264 116A Program <unknown>
12B3 03A80 14976 12B4 Program <unknown>
165C 000D0 208 166B Environment D:\SYSMAP\SYSMAP.EXE
166A 37D30 228656 166B Program D:\SYSMAP\SYSMAP.EXE
4E3E 51C10 334864 0000 Free Space <unallocated>
DOS Environment Variables
COMSPEC=C:\DOS\COMMAND.COM
TEMP=C:\TEMPFILE
PATH=C:\DOS;C:\BORLANDC\BIN;C:\TP;C:\WP51;C:\TOOLS;D:\DEVELOP;C:\QPRO
PROMPT=$p $t$h$h$h$_$g
CMOS RAM Memory
. . . . | . . . . | . . . . | . ....|....|....|.
05000300220007281191260250800000 ...."..(..&.P...
40FFF0FF41800200002AFFFFFFFFFFFA @...A....*......
FFFFFFFFFBFFFFFFFFFFFFFFFFFF17FE ................
000019FFFFFFFFFFFFFFFFFFFFFFFFFF ................
Disk Summary
Local/ B y t e s Percent
Disk LAN Capacity Available Free Used Current Directory
---- ------ ---------- ---------- ---- ---- -------------------------
A Local 1457664 1457664 100.0 0.0 \
C Local 33409024 1886208 5.6 94.4 \
*D Local 50348032 18505728 36.8 63.2 \SYSMAP
Root Dir
Media Bytes/ Sectors/ Bytes/ Entries
Disk Type Sector Cluster Cluster Clusters Max Now
---- ----- ------ -------- ------- -------- ---- ----
A 240 512 1 512 2847 224 0
C 248 512 4 2048 16313 512 17
*D 248 512 4 2048 24584 512 23
* = default drive
Directory List: C:\
---------------
Frag-
Composite Size mented
Flags Date Time Files [Bytes] Bytes Directory
--------- -------- -------- ----- --------- ------- ---------------------------
ADVSHR 06/07/90 21:14:38 7 128398 8818 C:\
AD---- 03/11/91 21:48:58 3 64457 5175 C:\BORLANDC\
A----- 03/11/91 21:49:02 15 161052 17124 C:\BORLANDC\BGI\
A----- 03/11/91 21:49:00 61 7323255 67977 C:\BORLANDC\BIN\
-D---- 03/11/91 21:49:12 0 0 0 C:\BORLANDC\CLASSLIB\
A----- 03/11/91 21:53:40 14 66488 15432 C:\BORLANDC\CLASSLIB\EXAMPLES\
A----- 03/11/91 21:49:12 25 119308 26100 C:\BORLANDC\CLASSLIB\INCLUDE\
A----- 03/11/91 21:56:20 1 56832 512 C:\BORLANDC\CLASSLIB\LIB\
A----- 03/11/91 22:07:58 22 123712 21696 C:\BORLANDC\CLASSLIB\SOURCE\
A----- 03/11/91 21:48:58 11 410219 11669 C:\BORLANDC\DOC\
AD---- 03/11/91 21:49:30 234 1051761 261007 C:\BORLANDC\EXAMPLES\
A----- 03/11/91 21:49:30 5 68156 5572 C:\BORLANDC\EXAMPLES\STARTUP\
A----- 03/11/91 22:00:44 9 77378 10686 C:\BORLANDC\EXAMPLES\TCALC\
AD---- 03/11/91 21:48:58 42 175280 43856 C:\BORLANDC\INCLUDE\
A----- 03/11/91 21:54:36 3 2230 3914 C:\BORLANDC\INCLUDE\SYS\
A----- 03/11/91 21:48:58 39 1600681 45911 C:\BORLANDC\LIB\
A----- 06/07/90 21:15:04 99 2363149 100595 C:\DOS\
[... 23 lines deleted ...]
A----- 07/05/91 21:57:58 5 103373 7219 C:\MSMOUSE\
AD---- 03/11/91 22:15:22 114 3138097 124367 C:\QPRO\
A----- 03/11/91 22:16:12 27 551958 27626 C:\QPRO\FONTS\
A----- 06/12/91 22:42:32 5 6 2042 C:\TEMPFILE\
A----- 06/07/90 21:20:06 84 1104554 101718 C:\TOOLS\
AD---- 11/14/90 20:44:48 14 1198516 15948 C:\TP\
A----- 11/14/90 20:44:50 30 272322 34878 C:\TP\BGI\
A----- 11/14/90 20:44:50 22 234181 27963 C:\TP\DOC\
A----- 06/07/90 23:08:10 109 4705783 109065 C:\WP51\
----- --------- ------- ---------------------------
1296 29874515 1457837 49 directories
1229 files to be archived
2 system files
3 hidden files (includes VolumeID file)
1 read only file
Disk Summary
100.00% 33409024 bytes on disk C
89.40% 29869227 bytes in 1293 user files
0.02% 5288 bytes in 3 hidden files
4.36% 1457837 bytes internal file fragmentation
0.35% 116736 bytes (estimate) in 48 directories (excludes root directory)
5.65% 1886208 bytes available
0.22% 73728 bytes unexplained
(bad sectors, unchained clusters, directory estimate)
Directory List: D:\
---------------
Frag-
Composite Size mented
Flags Date Time Files [Bytes] Bytes Directory
--------- -------- -------- ----- --------- ------- ---------------------------
ADV--- 06/12/91 01:15:30 1 0 0 D:\
A----- 06/12/91 19:00:48 5 1851456 4032 D:\ALGO2.3\
------ 11/23/91 19:35:28 0 0 0 D:\BRIAN\
[... 39 lines deleted ...]
----- --------- ------- ---------------------------
980 30669192 1078904 42 directories
980 files to be archived
1 hidden file (includes VolumeID file)
Disk Summary
100.00% 50348032 bytes on disk D
60.91% 30669192 bytes in 979 user files
0.00% 0 bytes in 1 hidden files
2.14% 1078904 bytes internal file fragmentation
0.19% 96256 bytes (estimate) in 41 directories (excludes root directory)
36.74% 18495488 bytes available
0.02% 8192 bytes unexplained
(bad sectors, unchained clusters, directory estimate)
File List: C:\
----------
Directory C:\*.*
Frag- Attri-
Size mented bute
Filename.Ext [bytes] bytes Flags Day Date Time
------------ -------- ------ ------ --- -------- --------
AUTOEXEC.BAT 293 1755 A----- Wed 11/20/91 22:12:26
COMMAND .COM 47845 1307 A----- Tue 04/09/91 05:00:00
CONFIG .SYS 87 1961 A----- Tue 10/29/91 00:17:50
GLYNN 0 0 A-V--- Thu 06/07/90 21:14:38
IO .SYS 33430 1386 ---SH- Tue 04/09/91 05:00:00
MSDOS .SYS 37394 1518 ---SH- Tue 04/09/91 05:00:00
WINA20 .386 9349 891 -----R Tue 04/09/91 05:00:00
------------ -------- ------
7 Files 128398 8818
Attribute
Subdirectory Flags Day Date Time
------------ ------ --- -------- --------
BORLANDC -D---- Mon 03/11/91 21:48:58
DOS -D---- Thu 06/07/90 21:15:04
GAMES -D---- Sat 07/21/90 16:12:04
MOUSE -D---- Wed 10/23/91 21:20:06
MSMOUSE -D---- Fri 07/05/91 21:57:58
QPRO -D---- Mon 03/11/91 22:15:22
TEMPFILE -D---- Wed 06/12/91 22:42:32
TOOLS -D---- Thu 06/07/90 21:20:06
TP -D---- Wed 11/14/90 20:44:48
WP51 -D---- Thu 06/07/90 23:08:10
------------
10 Subdirectories
Directory C:\BORLANDC\*.*
Frag- Attri-
Size mented bute
Filename.Ext [bytes] bytes Flags Day Date Time
------------ -------- ------ ------ --- -------- --------
FILELIST.DOC 35271 1593 A----- Wed 02/13/91 02:00:00
README 24969 1655 A----- Wed 02/13/91 02:00:00
README .COM 4217 1927 A----- Wed 02/13/91 02:00:00
------------ -------- ------
3 Files 64457 5175
Attribute
Subdirectory Flags Day Date Time
------------ ------ --- -------- --------
BGI -D---- Mon 03/11/91 21:49:02
BIN -D---- Mon 03/11/91 21:49:00
CLASSLIB -D---- Mon 03/11/91 21:49:12
DOC -D---- Mon 03/11/91 21:48:58
EXAMPLES -D---- Mon 03/11/91 21:49:30
INCLUDE -D---- Mon 03/11/91 21:48:58
LIB -D---- Mon 03/11/91 21:48:58
------------
7 Subdirectories
[... 3100 lines deleted ...]
Attribute Flag Description:
A - Archive Status: set "on" when file is opened and closed;
set "off" by DOS BACKUP or XCOPY ... /M;
set "on" or "off" by DOS ATTRIB command
D - Directory : "file" is subdirectory
V - Volume ID : "file" is volume label (see DOS LABEL command)
S - System File : special system file
H - Hidden : file is excluded from normal directory searches
R - Read Only : file cannot be erased;
set "on" or "off" by DOS ATTRIB command
Composite flag in Directory Summary is "on" if directory "file" or any
file/subdirectory has the flag on.
SysMap Elapsed Time: 16.92 seconds (00:17)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Comment:
"Fragmented Bytes" above is the amount of disk space allocated to
a file but not shown in the normal DOS DIR command. Since files
are allocated in integer clusters, a certain amount of space is
allocated but wasted for every file, unless its size happens to
be exactly a multiple of the cluster size. A large number of small
files can waste considerable disk space due to this internal file
fragmentation.